﻿using AutoMapper;
using eduscrum.Models;
using eduscrum.ViewModels;
namespace eduscrum.Helper
{
    public class AutoMapperConf
    {
        public static void Setup()
        {
            Mapper.CreateMap<Project, ProjectVM>();
            Mapper.CreateMap<Phase, PhaseVM>();
            Mapper.CreateMap<Sprint, SprintVM>();
            Mapper.CreateMap<Task, TaskVM>();
            Mapper.CreateMap<UserStory, UserStoryVM>();
            Mapper.CreateMap<ProjectVM, Project>();
            Mapper.CreateMap<PhaseVM, Phase>();
            Mapper.CreateMap<SprintVM, Sprint>();
            Mapper.CreateMap<TaskVM, Task>();
            Mapper.CreateMap<UserStoryVM, UserStory>();
        }
    }
}